-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADIOS2: Fix BTD Particle Resize w/ Empty Ranks #3657
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ax3l
added
bug
Something isn't working
bug: affects latest release
Bug also exists in latest release version
component: diagnostics
all types of outputs
component: boosted frame
boosted frame components & logic
labels
Jan 31, 2023
ax3l
added
component: third party
Changes in WarpX that reflect a change in a third-party library
workaround
component: openPMD
openPMD I/O
labels
Jan 31, 2023
ax3l
changed the title
ADIOS2: Fix BTD Resize w/ Empty Ranks
ADIOS2: Fix BTD Particle Resize w/ Empty Ranks
Jan 31, 2023
ax3l
force-pushed
the
fix-btd-resize-adios2
branch
from
February 1, 2023 00:57
e92ad14
to
b38a40f
Compare
For ADIOS2 BP4 and BP5 writes, setting an update of a variable's (openPMD record's) shape is not sufficient to drop all meta-data on disk. In situations where the last write to a BTD stage only adds further particles from a few ranks, we need to pad with zero-block writes so ADIOS2 `Put` gets called. Backend details: - BP4 (as of ADIOS 2.8): last MPI rank's `Put` meta-data wins - BP5 (as of ADIOS 2.8): everyone has to write an empty block
ax3l
force-pushed
the
fix-btd-resize-adios2
branch
from
February 1, 2023 00:59
b38a40f
to
bc3cc55
Compare
ax3l
commented
Feb 1, 2023
ax3l
changed the title
ADIOS2: Fix BTD Particle Resize w/ Empty Ranks
[WIP] ADIOS2: Fix BTD Particle Resize w/ Empty Ranks
Feb 1, 2023
ax3l
force-pushed
the
fix-btd-resize-adios2
branch
from
February 2, 2023 01:15
ff405b0
to
68d1400
Compare
Compact and general, including MR situations.
ax3l
force-pushed
the
fix-btd-resize-adios2
branch
from
February 2, 2023 01:57
68d1400
to
d1967a5
Compare
This was referenced Feb 2, 2023
ax3l
changed the title
[WIP] ADIOS2: Fix BTD Particle Resize w/ Empty Ranks
ADIOS2: Fix BTD Particle Resize w/ Empty Ranks
Feb 2, 2023
RemiLehe
approved these changes
Feb 2, 2023
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug: affects latest release
Bug also exists in latest release version
bug
Something isn't working
component: boosted frame
boosted frame components & logic
component: diagnostics
all types of outputs
component: openPMD
openPMD I/O
component: third party
Changes in WarpX that reflect a change in a third-party library
workaround
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For ADIOS2 BP4 and BP5 particle BTD writes, setting an update of a variable's (openPMD record's) shape is not sufficient to drop all meta-data on disk. In situations where the last write to a BTD stage only adds further particles from a few ranks, we need to pad with zero-block writes so ADIOS2
Put
gets called.Backend details:
Put
meta-data winsTests
6 MPI ranks w/ CUDA on Summit with read-back as in #3389
jsrun -r 6 -a 1 -g 1 -c 7 -l GPU-CPU -d packed -b rs --smpiargs="-gpu" ./warpx.RZ.MPI.CUDA.DP.PDP.OPMD.PSATD.QED inputs.txt
python3 -c "from openpmd_viewer import OpenPMDTimeSeries; ts = OpenPMDTimeSeries('./diags/diag_btd/'); ts.get_particle(['x'], iteration=1)"
Results:
development
master
as of98bef0ee88838c034832a1e280dfd555841462dc
w/ c-blosc 2.6.1: also failsRequires this patch in openPMD-viewer: openPMD/openPMD-viewer#355
Related Issues
Put
ornladios/ADIOS2#3455